include ../Makefile.shared

define PROJ_dnlearn
  SOURCES = dnlearn.ml
  RESULT = dnlearn
endef
export PROJ_dnlearn

define PROJ_dnboost
  SOURCES = logitboostImpl.ml dnboost.ml 
  RESULT = dnboost
endef
export PROJ_dnboost

#define PROJ_logitboost
#  SOURCES = logitboostImpl.ml logitboost.ml 
#  RESULT = logitboost
#endef
#export PROJ_logitboost

# If the environment does not define subprojects to handle,
# then set a default
ifndef SUBPROJS
  export SUBPROJS = dnlearn dnboost 
endif

export CLIBS=fminbr_stubs
export LIBS=ext str data expat mn bn fminbr lbfgs

# Default target to use
all: nc
	cp $(SUBPROJS) $(BINDIR)

# Catch-all target will be applied to all subprojects automatically
%:
	@$(MAKE) -f $(OCAMLMAKEFILE) subprojs SUBTARGET=$@
